package com.ruoyi.kepServer.centralpumphouse.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import com.ruoyi.kepServer.centralpumphouse.mapper.CentralpumphouseMapper;
import com.ruoyi.kepServer.centralpumphouse.domain.Centralpumphouse;
import com.ruoyi.kepServer.centralpumphouse.service.ICentralpumphouseService;

/**
 * kepserver中央水泵房Service业务层处理
 *
 * @author ruoyi
 * @date 2024-11-05
 */
@Service

public class CentralpumphouseServiceImpl extends ServiceImpl<CentralpumphouseMapper, Centralpumphouse> implements ICentralpumphouseService //修改
{
    @Autowired
    private CentralpumphouseMapper centralpumphouseMapper;

    /**
     * 查询kepserver中央水泵房
     *
     * @param tagName kepserver中央水泵房主键
     * @return kepserver中央水泵房
     */
    @Override
    public Centralpumphouse selectCentralpumphouseByTagName(String tagName)
    {
        return centralpumphouseMapper.selectCentralpumphouseByTagName(tagName);
    }

    /**
     * 查询kepserver中央水泵房列表
     *
     * @param centralpumphouse kepserver中央水泵房
     * @return kepserver中央水泵房
     */
    @Override
    public List<Centralpumphouse> selectCentralpumphouseList(Centralpumphouse centralpumphouse)
    {
        return centralpumphouseMapper.selectCentralpumphouseList(centralpumphouse);
    }

    /**
     * 新增kepserver中央水泵房
     *
     * @param centralpumphouse kepserver中央水泵房
     * @return 结果
     */
    @Override
    public int insertCentralpumphouse(Centralpumphouse centralpumphouse)
    {
        return centralpumphouseMapper.insertCentralpumphouse(centralpumphouse);
    }

    /**
     * 修改kepserver中央水泵房
     *
     * @param centralpumphouse kepserver中央水泵房
     * @return 结果
     */
    @Override
    public int updateCentralpumphouse(Centralpumphouse centralpumphouse)
    {
        centralpumphouse.setUpdateTime(DateUtils.getNowDate());
        return centralpumphouseMapper.updateCentralpumphouse(centralpumphouse);
    }

    /**
     * 批量删除kepserver中央水泵房
     *
     * @param tagNames 需要删除的kepserver中央水泵房主键
     * @return 结果
     */
    @Override
    public int deleteCentralpumphouseByTagNames(String[] tagNames)
    {
        return centralpumphouseMapper.deleteCentralpumphouseByTagNames(tagNames);
    }

    /**
     * 删除kepserver中央水泵房信息
     *
     * @param tagName kepserver中央水泵房主键
     * @return 结果
     */
    @Override
    public int deleteCentralpumphouseByTagName(String tagName)
    {
        return centralpumphouseMapper.deleteCentralpumphouseByTagName(tagName);
    }

    @Override
    public List<Centralpumphouse> getWaterList() {
        return centralpumphouseMapper.getWaterList();
    }

    @Override
    public List<Centralpumphouse> getDyDpWaterList() {
        return centralpumphouseMapper.getDyDpWaterList();
    }

    @Override
    public List<Centralpumphouse> getChDpWaterList() {
        return centralpumphouseMapper.getChDpWaterList();
    }
}
